import  requests


url = "http://www.baidu.com/s?"

headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
}
data={
    'wd':'ip'
}
proxy={
    'http':'183.221.242.104:8443'
}
response = requests.get(url,params=data, headers=headers,proxies=proxy)
response.encoding = 'utf-8'
print(response.text)

with open("response.html","w",encoding='utf-8') as f:
    f.write(response.text)